import React, { useState, useEffect } from 'react'
import url from '../assets/cat.gif'
import move from '../move'
export default function JJ() {
  const { x, y } = move()

  return (
    <div>
      <img
        src={url}
        alt=""
        style={{ position: 'absolute', left: x, top: y, width: 100 }}
      />
    </div>
  )
}
